package com.yufubao.model.dto.management.authorization;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

/**
 * @author 张一恒
 * @version 1.0
 * @description: 登录
 * @date 2024/9/2 20:54
 */
@Data
public class ManagerLoginDto {
    @NotEmpty(message = "账号不能为空")
    @Length(min = 5, max = 19, message="账号长度在5-18字符")
    private String account;
    @NotEmpty(message = "密码必须填写")
    @Length(min = 6,max = 18,message = "密码必须是6—18位字符")
    private String password;

}
